<template>
  <a-layout class="layout" :class="[device]">
    <template v-if="layoutMode === 'sidemenu'">
      <a-drawer
        v-if="device === 'mobile'"
        :wrapClassName="'drawer-sider ' + navTheme"
        placement="left"
        @close="() => (this.collapsed = false)"
        :closable="false"
        :visible="collapsed"
        width="200px"
      >
        <side-menu
          mode="inline"
          v-if="device === 'mobile'"
          :menus="menus"
          @menuSelect="menuSelect"
          @updateMenuTitle="handleUpdateMenuTitle"
          :theme="navTheme"
          :collapsed="false"
          :collapsible="true"
        ></side-menu>
      </a-drawer>

      <side-menu
        v-show="device === 'desktop'"
        mode="inline"
        :menus="menus"
        @menuSelect="myMenuSelect"
        @updateMenuTitle="handleUpdateMenuTitle"
        :theme="navTheme"
        :collapsed="collapsed"
        :collapsible="true"
      ></side-menu>
    </template>
    <!-- 下次优化这些代码 手机端左侧菜单栏 -->
    <!-- <template v-else>
      <a-drawer
        v-if="device === 'mobile'"
        :wrapClassName="'drawer-sider ' + navTheme"
        placement="left"
        @close="() => (this.collapsed = false)"
        :closable="false"
        :visible="collapsed"
        width="200px"
      >
        <side-menu
          mode="inline"
          :menus="menus"
          @menuSelect="menuSelect"
          @updateMenuTitle="handleUpdateMenuTitle"
          :theme="navTheme"
          :collapsed="false"
          :collapsible="true"
        ></side-menu>
      </a-drawer>
    </template> -->

    <a-layout
      :class="[layoutMode, `content-width-${contentWidth}`]"
      :style="{ paddingLeft: fixSiderbar && isDesktop() ? `${sidebarOpened ? 200 : 80}px` : '0' }"
    >
      <!-- layout header -->
      <global-header
        :mode="layoutMode"
        :menus="menus"
        :theme="navTheme"
        :collapsed="collapsed"
        :device="device"
        @toggle="toggle"
        @updateMenuTitle="handleUpdateMenuTitle"
      />

      <!-- layout content -->
      <!-- <a-layout-content :style="{ height: '100%', paddingTop: fixedHeader ? '59px' : '0' }"> -->
      <a-layout-content>
        <slot></slot>
      </a-layout-content>

      <!-- layout footer -->
      <!-- <a-layout-footer style="padding: 0px">
        <global-footer />
      </a-layout-footer> -->
    </a-layout>

    <!-- update-start---- author:os_chengtgen -- date:20190830 --  for:issues/463 -编译主题颜色已生效，但还一直转圈，显示主题 正在编译 ---- -->
    <!--<setting-drawer></setting-drawer>-->
    <!-- update-end---- author:os_chengtgen -- date:20190830 --  for:issues/463 -编译主题颜色已生效，但还一直转圈，显示主题 正在编译 ---- -->
  </a-layout>
</template>

<script>
import SideMenu from '@/components/menu/SideMenu'
import GlobalHeader from '@/components/page/GlobalHeader'
import GlobalFooter from '@/components/page/GlobalFooter'
import { triggerWindowResizeEvent } from '@/utils/util'
import { mapActions, mapState } from 'vuex'
import { mixin, mixinDevice } from '@/utils/mixin.js'
// update-start---- author:os_chengtgen -- date:20190830 --  for:issues/463 -编译主题颜色已生效，但还一直转圈，显示主题 正在编译 ------
// import SettingDrawer from '@/components/setting/SettingDrawer'
// 注释这个因为在个人设置模块已经加载了SettingDrawer页面
// update-end ---- author:os_chengtgen -- date:20190830 --  for:issues/463 -编译主题颜色已生效，但还一直转圈，显示主题 正在编译 ------

export default {
  name: 'GlobalLayout',
  components: {
    SideMenu,
    GlobalHeader,
    GlobalFooter,
    // update-start---- author:os_chengtgen -- date:20190830 --  for:issues/463 -编译主题颜色已生效，但还一直转圈，显示主题 正在编译 ------
    // // SettingDrawer
    // 注释这个因为在个人设置模块已经加载了SettingDrawer页面
    // update-end ---- author:os_chengtgen -- date:20190830 --  for:issues/463 -编译主题颜色已生效，但还一直转圈，显示主题 正在编译 ------
  },
  mixins: [mixin, mixinDevice],
  data() {
    return {
      collapsed: false,
      activeMenu: {},
      menus: [],
    }
  },
  computed: {
    ...mapState({
      // 主路由
      mainRouters: (state) => state.permission.addRouters,
      // 后台菜单
      permissionMenuList: (state) => state.user.permissionList,
    }),
  },
  watch: {
    sidebarOpened(val) {
      this.collapsed = !val
    },
  },
  created() {
    //--update-begin----author:scott---date:20190320------for:根据后台菜单配置，判断是否路由菜单字段，动态选择是否生成路由（为了支持参数URL菜单）------
    //this.menus = this.mainRouters.find((item) => item.path === '/').children;
    this.menus = this.permissionMenuList

    //--update-begin----author:liusq---date:20210223------for:关于测边菜单遮挡内容问题详细说明 #2255
    this.collapsed = !this.sidebarOpened
    //--update-begin----author:liusq---date:20210223------for:关于测边菜单遮挡内容问题详细说明 #2255

    // 根据后台配置菜单，重新排序加载路由信息
    //console.log('----加载菜单逻辑----')
    //console.log(this.mainRouters)
    //console.log(this.permissionMenuList)
    //console.log('----navTheme------'+this.navTheme)
    //--update-end----author:scott---date:20190320------for:根据后台菜单配置，判断是否路由菜单字段，动态选择是否生成路由（为了支持参数URL菜单）------
  },
  methods: {
    ...mapActions(['setSidebar']),
    toggle() {
      this.collapsed = !this.collapsed
      this.setSidebar(!this.collapsed)
      triggerWindowResizeEvent()
    },
    menuSelect() {
      if (!this.isDesktop()) {
        this.collapsed = false
      }
    },
    //update-begin-author:taoyan date:20190430 for:动态路由title显示配置的菜单title而不是其对应路由的title
    myMenuSelect(value) {
      //此处触发动态路由被点击事件
      this.findMenuBykey(this.menus, value.key)
      this.$emit('dynamicRouterShow', value.key, this.activeMenu.meta.title)
    },
    findMenuBykey(menus, key) {
      for (let i of menus) {
        if (i.path == key) {
          this.activeMenu = { ...i }
        } else if (i.children && i.children.length > 0) {
          this.findMenuBykey(i.children, key)
        }
      }
    },
    //update-end-author:taoyan date:20190430 for:动态路由title显示配置的菜单title而不是其对应路由的title

    // update-begin-author:sunjianlei date:20210409 for: 修复动态功能测试菜单、带参数菜单标题错误、展开错误的问题
    handleUpdateMenuTitle(value) {
      this.findMenuBykey(this.menus, value.path)
      this.activeMenu.meta.title = value.meta.title
      this.$emit('dynamicRouterShow', value.path, this.activeMenu.meta.title)
    },
    // update-end-author:sunjianlei date:20210409 for: 修复动态功能测试菜单、带参数菜单标题错误、展开错误的问题
  },
}
</script>

<style lang="less">
body {
  // 打开滚动条固定显示
  // 注释原因：issues/I5VK11
  //overflow-y: scroll;

  &.colorWeak {
    filter: invert(80%);
  }
}

.layout {
  min-height: 100vh !important;
  overflow-x: hidden;

  &.mobile {
    .ant-layout-content {
      .content {
        margin: 24px 0 0;
      }
    }

    /**
       * ant-table-wrapper
       * 覆盖的表格手机模式样式，如果想修改在手机上表格最低宽度，可以在这里改动
       */
    .ant-table-wrapper {
      .ant-table-content {
        overflow-y: auto;
      }
      .ant-table-body {
        // update-begin---author:sunjianlei Date:20220104 for： 【JTC-480】移动端不支持左右拖动，需要注释掉此段代码 ------------
        //min-width: 800px;
        // update-end---author:sunjianlei Date:20220104 for： 【JTC-480】移动端不支持左右拖动，需要注释掉此段代码 ------------
      }
    }
    .sidemenu {
      .ant-header-fixedHeader {
        &.ant-header-side-opened,
        &.ant-header-side-closed {
          width: 100%;
        }
      }
    }

    .topmenu {
      /* 必须为 topmenu  才能启用流式布局 */
      &.content-width-Fluid {
        .header-index-wide {
          margin-left: 0;
        }
      }
    }
    .header,
    .top-nav-header-index {
      .user-wrapper .action {
        padding: 0 12px;
      }
    }
  }

  &.ant-layout-has-sider {
    flex-direction: row;
  }

  .trigger {
    font-size: 22px;
    line-height: 42px;
    padding: 0 18px;
    cursor: pointer;
    transition: color 300ms, background 300ms;

    &:hover {
      background: rgba(255, 255, 255, 0.3);
    }
  }

  .topmenu {
    .ant-header-fixedHeader {
      position: fixed;
      top: 0;
      right: 0;
      z-index: 9;
      width: 100%;
      transition: width 0.2s;

      &.ant-header-side-opened {
        width: 100%;
      }

      &.ant-header-side-closed {
        width: 100%;
      }
    }
    /* 必须为 topmenu  才能启用流式布局 */
    &.content-width-Fluid {
      .header-index-wide {
        max-width: unset;
        margin-left: 24px;
      }

      .page-header-index-wide {
        max-width: unset;
      }
    }
  }

  .sidemenu {
    .ant-header-fixedHeader {
      position: fixed;
      top: 0;
      right: 0;
      z-index: 9;
      width: 100%;
      transition: width 0.2s;

      &.ant-header-side-opened {
        width: calc(100% - 200px);
      }

      &.ant-header-side-closed {
        width: calc(100% - 80px);
      }
    }
  }

  .header {
    height: 64px;
    padding: 0 12px 0 0;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
    position: relative;
  }

  .header,
  .top-nav-header-index {
    .user-wrapper {
      float: right;
      height: 100%;

      .action {
        cursor: pointer;
        padding: 0 14px;
        display: inline-block;
        transition: all 0.3s;

        height: 70%;
        line-height: 46px;

        &.action-full {
          height: 100%;
        }

        &:hover {
          background: rgba(255, 255, 255, 0.3);
        }

        .avatar {
          margin: 20px 10px 20px 0;
          color: #1890ff;
          background: hsla(0, 0%, 100%, 0.85);
          vertical-align: middle;
        }

        .icon {
          font-size: 16px;
          padding: 4px;
        }

        .anticon {
          color: inherit;
        }
      }
    }

    &.dark {
      .user-wrapper {
        .action {
          color: black;

          &:hover {
            background: rgba(0, 0, 0, 0.05);
          }

          .anticon {
            color: inherit;
          }
        }
      }
    }
  }

  &.mobile {
    .top-nav-header-index {
      .header-index-wide {
        .header-index-left {
          .trigger {
            color: rgba(255, 255, 255, 0.85);
            padding: 0 12px;
          }

          .logo.top-nav-header {
            text-align: center;
            width: 56px;
            line-height: 58px;
          }
        }
      }

      .user-wrapper .action .avatar {
        margin: 20px 0;
      }

      &.light {
        .header-index-wide {
          .header-index-left {
            .trigger {
              color: rgba(0, 0, 0, 0.65);
            }
          }
        }
        //
      }
    }
  }

  &.tablet {
    // overflow: hidden; text-overflow:ellipsis; white-space: nowrap;
    .top-nav-header-index {
      .header-index-wide {
        .header-index-left {
          .logo > a {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }
        }
      }
    }
  }

  .top-nav-header-index {
    // box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
    position: relative;
    transition: background 0.3s, width 0.2s;

    .header-index-wide {
      width: 100%;
      margin: auto;
      padding: 0 20px 0 0;
      display: flex;
      height: 59px;

      .ant-menu.ant-menu-horizontal {
        border: none;
        height: 60px;
        line-height: 60px;
        width: 48px;
      }

      .header-index-left {
        flex: 1 1;
        display: flex;

        .logo.top-nav-header {
          width: 165px;
          height: 64px;
          position: relative;
          line-height: 64px;
          transition: all 0.3s;
          overflow: hidden;

          img {
            display: inline-block;
            vertical-align: middle;
            height: 32px;
          }

          h1 {
            color: #fff;
            display: inline-block;
            vertical-align: top;
            font-size: 16px;
            margin: 0 0 0 12px;
            font-weight: 400;
          }
        }
      }

      .header-index-right {
        float: right;
        height: 59px;
        overflow: hidden;
        .action:hover {
          background-color: rgba(0, 0, 0, 0.05);
        }
      }
    }

    &.light {
      // background-color: #f7f7f7;

      .header-index-wide {
        .header-index-left {
          .logo {
            h1 {
              color: #002140;
            }
          }
        }
      }
    }

    &.dark {
      .user-wrapper {
        .action {
          color: white;

          &:hover {
            background: rgba(255, 255, 255, 0.3);
          }
        }
      }
      .header-index-wide .header-index-left .trigger:hover {
        background: rgba(255, 255, 255, 0.3);
      }
    }
  }

  // 内容区
  .layout-content {
    margin: 24px 24px 0px;
    height: 64px;
    padding: 0 12px 0 0;
  }
}

.topmenu {
  .page-header-index-wide {
    margin: 0 auto;
    width: 100%;
  }
}

// drawer-sider 自定义
.ant-drawer.drawer-sider {
  .sider {
    box-shadow: none;
  }

  &.dark {
    .ant-drawer-content {
      background-color: rgb(0, 21, 41);
    }
  }
  &.light {
    box-shadow: none;
    .ant-drawer-content {
      background-color: #fff;
    }
  }

  .ant-drawer-body {
    padding: 0;
  }
}

// 菜单样式
.sider {
  box-shadow: 2px 116px 6px 0 rgba(0, 21, 41, 0.35);
  position: relative;
  z-index: 10;

  &.ant-fixed-sidemenu {
    position: fixed;
    height: 100%;
  }

  .logo {
    height: 64px;
    position: relative;
    line-height: 64px;
    padding-left: 24px;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    background: #002140;
    overflow: hidden;

    img,
    h1 {
      display: inline-block;
      vertical-align: middle;
    }

    img {
      height: 32px;
    }

    h1 {
      color: #fff;
      font-size: 18px;
      margin: 0 0 0 8px;
      font-family: 'Chinese Quote', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
        'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol';
      font-weight: 600;
    }
  }

  &.light {
    background-color: #fff;
    box-shadow: 2px 116px 8px 0 rgba(29, 35, 41, 0.05);

    .logo {
      background: #fff;
      box-shadow: 1px 1px 0 0 #e8e8e8;

      h1 {
        color: unset;
      }
    }

    .ant-menu-light {
      border-right-color: transparent;
    }
  }
}

// 外置的样式控制
.user-dropdown-menu-wrapper.ant-dropdown-menu {
  padding: 4px 0;

  .ant-dropdown-menu-item {
    width: 160px;
  }

  .ant-dropdown-menu-item > .anticon:first-child,
  .ant-dropdown-menu-item > a > .anticon:first-child,
  .ant-dropdown-menu-submenu-title > .anticon:first-child .ant-dropdown-menu-submenu-title > a > .anticon:first-child {
    min-width: 12px;
    margin-right: 8px;
  }
}

// 数据列表 样式
.table-alert {
  margin-bottom: 16px;
}

.table-page-search-wrapper {
  .ant-form-inline {
    .ant-form-item {
      display: flex;
      margin-bottom: 24px;
      margin-right: 0;

      .ant-form-item-control-wrapper {
        flex: 1 1;
        display: inline-block;
        vertical-align: middle;
      }

      > .ant-form-item-label {
        line-height: 32px;
        padding-right: 8px;
        width: auto;
      }
      .ant-form-item-control {
        height: 32px;
        line-height: 32px;
      }
    }
  }

  .table-page-search-submitButtons {
    display: block;
    margin-bottom: 24px;
    white-space: nowrap;
  }
}

.content {
  .table-operator {
    margin-bottom: 18px;

    button {
      margin-right: 8px;
    }
  }
}

/**智能chapt */
/**智能chapt */

.listOrder {
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0px 8px;
  height: 50px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 50px;
  // background: #fcfdff;
  color: #414141;
  cursor: pointer;
  // border: 1px solid #d9d9d9;
  &.active {
    // box-shadow: 0px 2px 6px 0px #e7e7e7;
    // border: 0.5px solid #82b4ff !important;
    background: #f7f7f7;
  }
  .session-logo {
    margin: 0 5px;
    width: 22px;
  }
  .session-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 250px !important;
  }
  .space {
    margin-left: 0px;
    display: flex;
    align-items: center;
    .iconfont {
      font-size: 18px;
      margin-left: 5px;
    }
  }
  /**
	   	  * 自定义radio单选按扭
	 	**/
  input[type='radio'] {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    // border: 1px solid deeppink;
    border-radius: 20px;
    vertical-align: text-top;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
  }

  input[type='radio']:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    display: block;
    width: 12px;
    height: 12px;
    background: #0798ff;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    transform: scale(0);
    -webkit-transition: all ease-in-out 200ms;
    -moz-transition: all ease-in-out 200ms;
    transition: all ease-in-out 200ms;
  }

  input[type='radio']:checked {
    border-color: #0798ff;
  }

  input[type='radio']:checked:after {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    transform: scale(1);
  }
}
.navMarginTop{
  margin-top: 68px!important;
}
.contAllThree {
  display: flex;
  justify-content: space-between;
  .AllOne {
    width: 32.33%;
    float: left;
    background: white;
    box-shadow: 0px 2px 6px 0px #e7e7e7;
    border-radius: 10px;
    padding: 15px;
    overflow: hidden auto;
    .dt {
      font-size: 17px;
      font-weight: 600;
      color: #414141;
      margin-left: 10px;
      line-height: 30px;
      img {
        width: 30px;
        height: 30px;
        margin-right: 10px;
      }
      .dd {
        float: right;
        color: #82b4ff;
        font-size: 14px;
        font-weight: 100;
      }
    }
    .newChatBtn {
      color: #fff;
      background: linear-gradient(90deg, #938bff, #ff97f2);
      padding: 10px 0;
      // margin: 0 14px;
      font-size: 14px;
      text-align: center;
      cursor: pointer;
      border-radius: 8px;
      margin-bottom: 10px;
    }
    .newChatBtn:hover {
      opacity: 0.7;
    }
    &.timeRol {
      width: 25%;
      // background: #722ed129;
    }
    &.timeOrTHer {
      width: 36%;
    }

    &.transWidth {
      width: 74%;
      padding: 15px;
      .ant-form-item {
        width: 250px;
      }
      .midICon {
          float: left;
          vertical-align: middle;
          line-height: 42px;
          i {
            font-size: 25px;
            margin: 0 10px;
            cursor: pointer;
            color: #938bff;
          }
        }
    }
    .closeMode{
        display: none;
      }
      .ant-radio-group{
        float: left;

      }
      .ant-form-item{
        margin-bottom: 5px;
        label{
          .ant-radio{
            display: none;
          }
          span{
            background: #f5f5f5;
            padding: 10px 16px;
            border-radius: 8px;
            float: left;
          }
          &.ant-radio-wrapper-checked{
            span{
              background: #ff97f2;
              color: white;
            }
          }
        }
      }
    
  }
  .AllFive{
    width: 49.5%;
  }
  .justify-between {
    display: flex;
    justify-content: space-between;
  }
  &flexCont{
      flex: 1;
      margin:0 16px;
      position:relative;
      padding: 0;
      .modelForm{
        overflow: hidden auto;
        .timeList{
          padding: 0 12px 14px 17px;
        }
      }
    }
    .flexReturn{
      flex: 2;
    }
   
}
.contAllThree{
  .mobileCont{
      display: none;
    }
}
.moveUpDown{
  display: none;
}

*::-webkit-scrollbar {
  width: 4px;
    background: transparent;
}
::-webkit-scrollbar-thumb {
  // background: linear-gradient(45deg, #938bff, #ff97f2);
  background: transparent;
  border-radius: 4px;
}
*:hover::-webkit-scrollbar-thumb {
  background: hsla(0, 0%, 53%, 0.4);
}
 
// ::-webkit-scrollbar-thumb :hover {
//   // opacity: 0.7;
//   background: hsla(0, 0%, 53%, 0.4);
// }
::-webkit-scrollbar-track{
  background: white;
}

.layout .topmenu{
  display: flex;
    flex: 1;
    flex-basis: auto;
    flex-direction: row;
    background: #f7f7f7;
}

/deep/.projectBox{
  // margin: 12px 12px 0;
  .ant-card{
    margin-top: 68px
  }
}
.allBackground{
  background: white;
    margin: 0 14px 14px 14px;
    padding: 14px;
    border-radius: 6px;
}
.marginRight{
  margin-right: 14px;
}
.execute{
  display: flex;
  align-items: center;
  margin-top: 10px;
}
.flex {
    display: flex;
}
.flex-1{
  flex: 1;
  overflow: hidden auto!important;
}
.flex-direction{
  flex-direction: column;
}
.ant-menu-submenu-title{
  background: #f7f7f7!important;
}
.j-table-force-nowrap td, .j-table-force-nowrap th{
  white-space: normal!important;
}

.disclaimer{
  display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: white;
    // /deep/.el-checkbox__original{
    //   width: 24px;
    // height: 18px;
    // }
    a{
      &.forge-password{
        
      }
     
    }
}


@media screen and (max-width: 767px) {
  .sider.light .logo h1{
    display: none;
  }
  .mobileCont {
    display: block;
  }
  .footer {
    padding: 10px!important;
    margin: 0!important;
  }
.ant-modal{
    top: 0!important;
  }

  .contAllThree {
    display: unset;

    .mobileCont{
      display: block;
      height: 90px;
      margin-bottom: 20px;
    }
    .mobileContActive{
      // position:fixed;
      top: 0;
      left: 0;
      z-index: 8;
      border-top-left-radius: 0;
      border-top-right-radius: 0;
    }
    .AllOne.timeRol,.AllOne.timeOrTHer{
      width: 100%;
      float: left;
      height: unset!important;
    }
      .timeRol{
        display: none;
        position: fixed;
        background: white;
        z-index: 9;
        left: 0;
        top: 0;

      }
  }

  .banner{
    display: none;
  }
   .chat-content {
    width: 100%;
  }
  .chat-container{
    .contAllThree{
      .mobil {
        display: none;
        z-index: 999;
        .newChatBtn{
          margin: 0 10px;
        }
      }
    }
    .mobilChat{
      .chat{
        height: auto!important;
        padding-bottom: 110px;
      }
      .histWk{
        position: fixed;
        left: 0;
        bottom: 30px;
      }
    }
  }
  .marginRight{
    margin-right: 0;
  }
  .AllOne.flexCont {
    max-height: 300px;
  }
  .mobileCont{
    margin-top: 0!important;
    .AllOne{
      padding: 5px;
      margin-bottom: 0!important;
      .newChatBtn{
        padding: 7px 6px;
        font-size: 13px;
        margin: 0px 10px 2px 10px;
        border-radius: 30px;
      }
    }
  }

  .contAllThree{
    display: inline-block;
    margin-top: 0;
    width: 100%;
    float: left;
    .AllOne{
      width: 100%!important;
      margin-bottom: 20px;
      overflow:unset;
      transition: all 0.3s;
      .historyTime{
        text-align: center;
        font-size: 14px;
        font-weight: bold;
      }
    }
    .ul{
      .li{
        height: 105px!important;
        line-height: 105px!important;
        span{
          font-size: 14px!important;
        }
      }
    }
    .mobileMode{
      position: fixed;
      background: white!important;
      z-index: 9;
      left: 0;
      top: 0;
      border-top-left-radius: 0;
      border-top-right-radius: 0;
      display: block!important;
      max-height: 300px;
      // overflow: hidden auto;
      animation:jumpTop 1.5s;
  -webkit-animation:jumpTop 1.5s;
      .closeMode{
        display: block;
        background: white;
        padding: 5px;
        box-shadow: 0px 2px 6px 0px #e7e7e7;
        .closeBtn{
          display: block;
          text-align: center;
          background: linear-gradient(90deg, #d1ceff, #938bff);
          border-color: #938bff;
          width: 60px;
          color: white;
          border-radius: 5px;
          line-height: 30px;
          cursor: pointer;
          margin: 0 auto 0;
        }
       
      }
      .closeMode:hover{
        opacity: 0.7;
      }
      .timeList{
        max-height: 200px;
        overflow: hidden auto;
      }
    }

    @keyframes jumpTop
      {
        0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
      }
  }


  .inputSend{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px; 
    background: white;
    .chat-messages{
      margin: 5px 0 5px 0!important;
      .chat-input{
        height: 40px!important;
      }
      .chat-atn{
        height: 40px!important;
      }
    }
    .chat-atn.middle{
        height: 28px!important;
    padding: 0px 10px!important;
    line-height: 28px!important;
    font-size: 13px;
      }
  }
  .result-module{
    padding: 10px!important;
  }
  .moveUpDown{
    display: block;
    position: fixed;
    right: 10px;
    bottom: 10px;
    border-radius: 50%;
    text-align: center;
    /*设置动画时间*/
animation: moveUpDowns 2s linear infinite; /* 使用 scroll 动画，持续时间 10 秒，线性过渡，无限循环 */
img{
  width: 30px;
  height: 30px;
}
  }

/*下面是动画关键帧*/
/*from代表动画起始状态，to代表动画结束状态*/
@keyframes moveUpDowns {
  0% {transform: translateY(0);}
    25% {transform: translateY(-5px);}
    50% {transform: translateY(0);}
    75% {transform: translateY(5px);}
    100% {transform: translateY(0);}
}
.transTopCont{
  padding-bottom: 60px!important;
}
.transWidth {
  .ant-form {
    display: flex;
  }
  .timeList{
    .justify-between{
      display: none!important;
    }
  }

}
  .timeList {
    .transCont {
      display: unset!important;
      margin-top: 0;
      .transMid{
        width: unset!important;
      }
    }
    .transLeft{
      textarea{
        height: 200px!important;
      }
    }
    .transRight{
      .transHtml{
        height: 250px!important;
        width: 100%!important;
      }
    }

  }
  .contAllThree .AllOne.transWidth{
    width: 100%!important;
  }
  .topBomFix.justify-between{
    position:fixed;
    bottom: 10px;
    left: 0;
    width: 100%;
    .copyTrans,.sheCot{
      width: 100%!important;
      margin:0 10px!important;
    }
  }
  // .navMarginTop{
  //   margin-top: 5px!important;
  // }
  .allBackground{
    margin: 0;
    padding: 5px;
  }
  .analysis{
    height: auto!important;
    width: 100%;
  }

  
  .ant-tooltip{
    display: none!important;
  }

}


</style>
